<template>
  <div class="internal-wrap">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="部门" name="first">部门</el-tab-pane>
      <el-tab-pane label="角色" name="second"><RoleSet/></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import RoleSet from './RoleSet'
export default {
  components:{
    RoleSet
  },
  data() {
    return {
      activeName: 'second'
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
}
</script>

<style lang='scss' scoped>
.internal-wrap{
  background: #fff;
  width: 95%;
  height: 95%;
  margin: 0 auto;
}
</style>